import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        int[] a=new int[n];
        int[] b=new int[n];
        boolean ok=true;
        for (int i = 0; i < n; i++) {
            a[i]=s.nextInt();
        }

        int j=0;
        for (int i = 0; i < n; i++) {
            ok=true;
            for (int l = 0; l < j; l++) {
                if(b[l]==a[i]) {
                    ok = false;
                    break;
                }
            }
            if(ok){
                b[j++]=a[i];
            }
        }
        for (int i = 0; i < j; i++) {
            System.out.printf(b[i]+" ");
        }

    }
}